package com.zk.yygh.hosp.service;

import com.zk.yygh.model.hosp.Schedule;
import com.zk.yygh.vo.hosp.DepartmentVo;
import com.zk.yygh.vo.hosp.ScheduleOrderVo;
import com.zk.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author: 张凯
 * @date: 2022/6/6 - 10:50
 */
public interface ScheduleService {

    void save(Map<String, Object> parameterMap);

    Page<Schedule> selectPage(int page, int limit, ScheduleQueryVo scheduleQueryVo);

    void remove(Map<String, Object> parameterMap);

    Map<String, Object> getScheduleRole(String hoscode, String depcode, Integer page, Integer limit);

    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);

    Map<String,Object> getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);

    //根据排班id获取排信息
    Schedule getScheduleById(String id);

    //根据排班id获取预约下单数据
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    //生成订单后更新排班信息
    void update(Schedule schedule);
}
